<ion-header>
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>Toast</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>

  <button ion-button block (click)="showToast('showShortTop')">
    top short toast
  </button>

  <button ion-button block (click)="showToast('showShortBottom')">
    bottom short toast
  </button>

  <button ion-button block (click)="showToast('showLongCenter')">
    center long toast
  </button>

  <button ion-button block (click)="show({message:'3秒后消失',position:'center',duration:3000})">
    持续3秒
  </button>

  <button ion-button block (click)="showToastWithStyle()">
    自定义样式
  </button>

</ion-content>
